/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ronsicecream.pos.master.type;

import com.buanalintas.bynga.Field;
import com.buanalintas.bynga.Page;
import com.ronsicecream.pos.entities.PosMasterRasa;
import com.ronsicecream.pos.entities.PosMasterType;

/**
 *
 * @author user
 */
public class Type extends Page{
    private Field typeId;
    private Field typeName;
    private Field typeDescription;

    public Type() {
        super();

        setTheClass(PosMasterType.class);




        typeId = new Field();
        typeId.setName("typeId");
        typeId.setCaption("id");
        //regionalId.setInfo("regional id");
        typeId.setListProperties(" align=\"left\" width=\"1%\" nowrap");
        typeId.setInputProperties(" size=\"20\"");
        getFields().add(typeId);
        
        typeName = new Field();
        typeName.setName("typeName");
        typeName.setCaption("name");
        //regionalName.setInfo("regional name");
        typeName.setListProperties(" align=\"left\" width=\"60%\" nowrap");
        typeName.setInputProperties(" size=\"30\"");
        typeName.setRequired(true);
        getFields().add(typeName);

        typeDescription = new Field();
        typeDescription.setName("typeDescription");
        typeDescription.setCaption("description");
        //opnameDescription.setInfo("opname description");
        typeDescription.setListProperties(" width=\"55%\"");
        typeDescription.setInputProperties(" cols=\"50\" rows=\"5\"");
        typeDescription.setInputType(Field.INPUT_TEXT_AREA);
        typeDescription.setInputCase(Field.CASE_UPPER);        
        getFields().add(typeDescription);

        fillFields();
        setExportList(getClass().getResourceAsStream("RegionalList.jasper"));
        setExport(getClass().getResourceAsStream("Regional.jasper"));

        getFieldsAdd().remove(typeId);
        getFieldsEdit().remove(typeId);
        getFieldsList().remove(typeId);
        getFieldsView().remove(typeId);
    }
}
